<div class="header">
    <div class="wrapper">
        <h1><a href="/">有趣.US</a></h1>
        <div class="login">
            [%if(typeof user != 'undefined' && user.username){%]hello , [%-user.username%] .[%}else{%]<a href="/login">请登录</a>[%}%]
        </div>
        <div class="nav">
            <a href="/">首页</a>
        </div>
    </div>
</div>